/* sort.c */
void heap_sort (uint64* base, uint64 n);
void heap_sort_no_cache (uint64* base, uint64 n, uint64* retarder0, uint64* retarder1);
void quick_sort (uint64* base, uint64 n);

/* mem.c */
mempool* mempool_init (mempool* pool, uint64 buf_num, uint64 buf_siz); 

/* rand.c */
char *get_rand_name ();

/* threads.c */
int thread_init ();
void io_thread ();
void sort_thread (void *id_p);
void monitor_thread ();

/* numa.c */
int numa_init ();
struct bitmask* get_cpu_mask (int thread_id);
int get_current_numa_id (int thread_id);